Add z_instrument_all script and documentation#1468
Add z_instrument_all script and documentation#1468unboundlopez wants to merge 3 commits intoDFHack:masterfrom
Conversation
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
ab9rf
left a comment
There was a problem hiding this comment.
in addition to the specific comments already made, i can't approve of the name. a z_ prefix offers no actionable information to players, and i do not want the situation of individual script developers fighting over who has "prefix rights" within the script namespace
i go back to the idea that this should be an added option to the instruments script rather than a script of its own
| local success, err = pcall(function() | ||
| dfhack.run_command("instruments", "order", name, tostring(order_count)) | ||
| end) |
There was a problem hiding this comment.
i would also prefer to invoke instruments directly instead of running this through run_command
it might make more sense to implement this PR as an extension to instruments
|
I made a new pull request. I hope I did it properly. #1473 |
1 similar comment
|
I made a new pull request. I hope I did it properly. #1473 |
z_instrument_all.lua
Automatically queue work orders for all discovered instruments in Dwarf Fortress using DFHack.
Features
instrumentscommandUsage
Run with a number to place that many orders per instrument (defaults to 1 if omitted):
::
z_instrument_all 5
This example queues 5 of each discovered instrument.
Acknowledgments
This script utilizes the DFHack
instrumentscommand to retrieve and process instrument definitions.